<script setup lang="ts">
import { inject, ref } from 'vue';

let value = ref(inject('2'))

function change() {
    value.value = 'ok'
}

</script>

<template>
    <main>
        <div>Child.vue</div>
        inject - {{ value }}
        <button @click="change">ok</button>
    </main>
</template>
